-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Revert index (entity format) definition to be a non-negative number, permitting zero #1482
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## master #1482 +/- ##
=======================================
Coverage 87.88% 87.88%
=======================================
Files 14 14
Lines 1279 1279
=======================================
Hits 1124 1124
Misses 155 155 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve in principle. A wording suggestion and a fix for the regular expression.
Co-authored-by: Christopher J. Markiewicz <[email protected]>
@effigies non-negative I think is more accurate. Zero is commonly unsigned, so we can have very esoteric discussions on the issues page about whether or not it's positive :3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, non-negative is what we need, I think.
Yes, it should be non-negative. I was pointing to the PR where it was changed to positive, so people could evaluate this fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good with me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
can we merge this to make sure it's in 1.9.0 ? :) |
Yes. We just have rules for changes to the spec to give people adequate time to comment. |
In continuation of previous discussions, including #535
A bit of theoretical background:
More practically, there are a few datasets which include
0
values of an index:and supporting this doesn't break or encumber anything (if anything it makes the regex matching marginally shorter).
If we were to explicitly exclude zero, I think ordinal would be a better notion, since zero is clearly what people think of as a valid index when reading the word index — though as explained above, even that is a bit arbitrary. The zeroth (nought) week is a thing at some colleges.
@effigies @yarikoptic